<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $tamember['username']?>的主页</title>
<link href="/css/base.css" type="text/css" rel="stylesheet" />
<link href="/css/manage.css" type="text/css" rel="stylesheet" />
<link href="/css/layout.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery.default.js"></script>
<script type="text/javascript" src="/js/jquery.validate.js"></script>
<script type="text/javascript" src="/js/xiaodian.js"></script>
<!--[if ie]><link href="/css/ie.css" type="text/css" rel="stylesheet"><![endif]-->
<script type="text/javascript">
	
</script>

</head>

<body>
   <?php $this->load->view('head');?>
    <div class="w100p mt40 mb20">
    	<div class="w903 mg">
        	<div class="box_s1">
            	<div class="b_head"></div>
                <div class="content">
					<div class="mem_pd_s4">
                    	<!-- top -->
                    	<?php $eData['tamember']= $tamember;
                    		$eData['tab']='index'
                    	?>
                    	<?php $this->load->view('tatop',$eData)?>
                    	
                        <!-- top--end-->
                        
                        
                        <!-- content -->
                        <div class="clearfix pt25">
                        	<div class="member_left_s1">
                            	<!-- store_comment -->
                        		<div class=" com_box_s3">
                                	<h1><a href="#" class="more">more</a><?php echo $tamember['username']?>的小店评论</h1>
                                    <ul class="mem_store_comment">
                                    	<?php foreach ($commentList as $comment):?>
                                    		<li>
	                                        	<div class="lr_box">
	                                            	<div class="l_box">
	                                                	<a href="#"><img src="<?php echo $comment['photo']?>" width="62" height="62" class="block" /></a>
	                                                </div>
	                                                <div class="r_box">
	                                                	<p class="title">
	                                                    	<a href="#"><?php echo $comment['name']?></a>
	                                                    </p>
	                                                    <span class="time"><?php echo date('Y-m-d H:i:s',$comment['createtime'])?></span>
	                                                    <p class="info"><?php echo replaceExpress($comment['content'])?></p>
	                                                </div>
	                                            </div>
	                                        </li>
                                    	<?php endforeach;?>
                                    	
                                       
                                    </ul>
                                </div>
                                <!-- store_comment--end -->
                                <div class="dash"></div>
                                
                                <!-- street_talk -->
                                <div class="com_box_s3">
                                	<h1><a href="#" class="more">more</a><?php echo $tamember['username']?>的街道话题</h1>
                                    <ul class="mem_talk">
                                    	<?php foreach ($topicList as $topic):?>
                                    		<li>
	                                        	<div class="lr_box">
	                                            	<div class="l_box">
	                                                	<a href="#"><img src="<?php echo site_url($topic['logo'])?>" width="82" height="82" class="block" /></a>
	                                                </div>
	                                                <div class="r_box">
	                                                	<p class="title">
	                                                    	<a href="#" class="street_name"><?php echo $topic['name']?></a><span class="time"><?php echo date('Y-m-d H:i:s',$topic['createtime'])?></span><span class="ope_nums"><a href="#"><i>[1]</i>回复</a><a href="#"><i>[23]</i>浏览</a></span>
	                                                    </p>
	                                                    <span ><?php echo $topic['title']?></span>
	                                                    <p class="info"><?php echo $topic['content']?></p>
	                                                </div>
	                                            </div>
	                                        </li>
                                    	<?php endforeach;?>
                                    	
                                       
                                    </ul>
                                </div>
                                <!-- street_talk--end-->
                                <div class="dash"></div>
                                
                                <!-- store-->
                                <div class="com_box_s3">
                                	<h1><?php echo $tamember['username']?>的小店</h1>
                                    <div class="mem_box mb20">
                                    	<div class=" icon_bg sorts">添加的<br />[<?php echo $addStoreCount?>]</div>
                                        <ul>
                                        	<?php foreach ($addStoreList as $addStore):?>
                                        		<li><a href="<?php echo site_url('store?id='.$addStore['id'])?>" target="_blank"><img src="<?php echo site_url($addStore['photo'])?>" width="82" height="82" class="block" /></a></li>
                                        	<?php endforeach;?>
                                        	
                                        </ul>
                                        <div class="clear"></div>
                                    </div>
                                    <div class="mem_box mb20">
                                    	<div class=" icon_bg sorts">收藏的<br />[<?php echo $favorStoreCount?>]</div>
                                        <ul>
                                        	<?php foreach ($favorStoreList as $store):?>
                                        		<li><a href="<?php echo site_url('store?id='.$store['id'])?>"><img src="<?php echo site_url($store['photo'])?>" width="82" height="82" class="block" /></a></li>
                                        	<?php endforeach;?>
                                        	
                                        </ul>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                                <!-- store--end-->
                                <div class="dash"></div>
                                
                                <!-- street-->
                                <div class="com_box_s3">
                                	<h1>douyacai的街道</h1>
                                    <div class="mem_box mb20">
                                    	<div class=" icon_bg sorts">居住在<br />[<?php echo $liveStreetListCount?>]</div>
                                        <ul>
                                        	<?php foreach ($liveStreetList as $liveStreet):?>
                                        		<li><a href="<?php echo site_url('street?id='.$liveStreet['id'])?>" target="_blank"><img src="<?php echo $liveStreet['logo']?>" width="82" height="82" class="block" /></a></li>
                                        	<?php endforeach;?>
                                        </ul>
                                        <div class="clear"></div>
                                    </div>
                                    <div class="mem_box mb20">
                                    	<div class=" icon_bg sorts">添加的<br />[<?php echo $addStreetCount?>]</div>
                                        <ul>
                                        	<?php foreach ($addStreetList as $addStreet):?>
                                        		<li><a href="<?php echo site_url('street?id='.$addStreet['id'])?>" target="_blank"><img src="<?php echo $addStreet['logo']?>" width="82" height="82" class="block" /></a></li>
                                        	<?php endforeach;?>
                                        </ul>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                                <!-- street--end-->
                                <div class="dash"></div>
                                
                                <!-- photo -->
                                <div class="com_box_s3">
                                	<h1><?php echo $tamember['username']?>的相册</h1>
                                    <ul class="mem_photo">
                                    	<?php foreach ($albumList as $key=>$album):?>
                                    		<li
                                    		<?php if($key == 2):?>
                                    			class="last"
                                    		<?php endif;?>
                                    		>
	                                        	<a href="#"><img src="<?php echo site_url($album['cover'])?>" width="187" height="122" class="block" /></a>
	                                        </li>
                                    	<?php endforeach;?>
                                    	
                                    </ul>
                                </div>
                                <!-- photo--end-->
                                <div class="dash"></div>
                                
                            </div>
                            
                            <div class="member_right_s1">
                            	<div class="member_info">
                                	<img src="<?php echo $tamember['avatar']?>" width="207" height="207" class="block avater" />
                                    <div class="else_info">
                                    	<div class="basic_info">
                                       		<span class="name"><?php echo $tamember['username']?></span>
                                            <span><?php echo date('Y-m-d',$tamember['regtime'])?>加入</span>
                                            <span>常住：<?php echo $tamember['residence']?> &nbsp;&nbsp;国籍：<?php echo $tamember['national']?></span>
                                        </div>
                                        <div class="dash_s1"></div>
                                        <div class="master_store">
                                        	<h3>ta的店</h3>
                                            <ul>
                                            	<?php foreach ($manageStoreList as $mangStore):?>
                                            		<li><a href="<?php echo site_url('store?id='.$mangStore['id'])?>"><img src="<?php echo $mangStore['photo']?>" width="33" height="33" class="block" /></a></li>
                                            	<?php endforeach;?>
                                            </ul>
                                        </div>
                                        <div class="rel_ope">
                                        	<a href="#" class="gz">关注此人</a><a href="<?php echo site_url('member/sendmsg?id='.$tamember['id'])?>">发短消息</a>
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="com_box_s3">
                                	<h1>谁来看过[4人]</h1>
                                    <ul class="person_contact">
                                    	<?php foreach ($visitList as $visit):?>
                                    		<li>
	                                        	<a href="<?php echo site_url('tamember?id='.$visit['visitMember'])?>"><img src="<?php echo $visit['avatar']?>" width="64" height="64" class="block" /></a>
	                                            <a href="<?php echo site_url('tamember?id='.$visit['visitMember'])?>" class="name"><?php echo $visit['username']?></a>
	                                        </li>
                                    	<?php endforeach;?>
                                    	
                                       
                                    </ul>
                                </div>
                                
                                <div class="com_box_s3 mt5">
                                	<h1><?php echo $tamember['username']?>关注的人</h1>
                                    <ul class="person_contact">
                                    	<?php foreach ($followList as $follow):?>
                                    		<li>
	                                        	<a href="<?php echo site_url('tamember?id='.$follow['fmember'])?>"><img src="<?php $follow['avatar']?>" width="64" height="64" class="block" /></a>
	                                            <a href="<?php echo site_url('tamember?id='.$follow['fmember'])?>" class="name"><?php echo $follow['fusername']?></a>
	                                        </li>
                                    	<?php endforeach;?>
                                    	
                                       
                                    </ul>
                                </div>
                                
                                <div class="com_box_s3 mt5">
                                	<h1>关注<?php echo $tamember['username']?>的人</h1>
                                    <ul class="person_contact">
                                    	<?php foreach ($fansList as $fans):?>
                                    		<li>
	                                        	<a href="<?php echo site_url('tamember?id='.$fans['member'])?>"><img src="<?php $fans['avatar']?>" width="64" height="64" class="block" /></a>
	                                            <a href="<?php echo site_url('tamember?id='.$fans['member'])?>" class="name"><?php echo $fans['username']?></a>
	                                        </li>
                                    	<?php endforeach;?>
                                    	
                                     
                                    </ul>
                                </div>
                                
                            </div>
                            <div class="clear"></div>
                        </div>
                        <!-- content--end-->
                        
                        
                        
                        
                    </div>
                    
                    
                </div>
                <div class="b_foot"></div>
            </div>
        </div>
    </div>
    
   <?php $this->load->view('foot')?>
</body>
<script type="text/javascript">
	
	
</script>
</html>
